package com.group3.hospital.service.impl;

import com.group3.hospital.bean.Admin;
import com.group3.hospital.bean.User;
import com.group3.hospital.mapper.AdminMapper;
import com.group3.hospital.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 秀秀
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Resource
    AdminMapper adminMapper;

    @Override
    public Admin queryAdmin(Long adminTel,String adminName,String adminPassword) throws Exception {
        return adminMapper.queryAdmin(adminTel,adminName,adminPassword);
    }

    @Override
    public List<User> queryAllUser() throws Exception {
        return adminMapper.queryAllUser();
    }
}
